package com.beta.dto.Shipment;


import com.beta.em.order.ShipmentStatus;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lichao on 2016/11/28.
 */
public class ShipmentsDto implements Serializable {
    private static final long serialVersionUID = -8970834524595788842L;
    private Integer id;
    private String code;
    private Date pickedAt;
    private Date shippedAt;
    private Date completedAt;
    private Date createdAt;
    private String receiverName;
    private String receiverPhone;
    private String receiverAddress;
    private String status;
    private String mode;

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getPickedAt() {
        return pickedAt;
    }

    public void setPickedAt(Date pickedAt) {
        this.pickedAt = pickedAt;
    }

    public Date getShippedAt() {
        return shippedAt;
    }

    public void setShippedAt(Date shippedAt) {
        this.shippedAt = shippedAt;
    }

    public Date getCompletedAt() {
        return completedAt;
    }

    public void setCompletedAt(Date completedAt) {
        this.completedAt = completedAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getHumanStatusName(){
       return ShipmentStatus.getCnValue(status);
    }

    public Boolean getComfirmable(){
        return
        mode.equals("carting")?true:false;
    }
}
